home *** CD-ROM | disk | FTP | other *** search
- /*
- cvcolor.h
-
- Custom color control
-
- C++/Views 2.0 Demo
- Copyright (c) 1992, by Liant Software Corp.
- ALL RIGHTS RESERVED.
-
- Revision History:
- -----------------
- */
-
- #ifndef cvcolor_h
- #define cvcolor_h
- #include "control.h"
-
- class ColorControl : public VControl {
-
- private:
- int currColor;
- method clickMthd;
-
- public:
- ColorControl(VFrame&, VWindow*, short);
- ColorControl();
- ~ColorControl();
-
- VClass *iam();
- boolean free();
-
- boolean erased();
- boolean paint();
- boolean mouseUp(int mx, int my);
- boolean mouseDn(int mx, int my);
- boolean mouseMv(int mx, int my, int bStat);
-
- void uponClick(id clnt, method mthd);
-
- void setColor(int clr);
- boolean getMouseColor(int mx, int my, int *clr);
-
- rgbColor getColor();
- };
-
- extern VClass *ColorControlCls;
- #endif /* cvcolor_h */
-